import service from '../util/request'

export let get = (url, data) => {
    console.log('get请求')
    service({
        url: url,
        method: 'get',
        data: data,
    })
}
export let post = (url, data) => {
    console.log('post请求')
    service({
        url: url,
        method: 'post',
        data: data,
    })
}

/**上传文件 */
export let uploadFile = (data) => {
    return upload({
        url: '/api/file/upload',
        method: 'post',
        data: { file: data },
    })
}
/**上传文件 */
export let uploadimport = (data) => {
    return importdata({
        url: '/updateStaticTestData/import',
        method: 'post',
        data: data,
    })
}
/**下载 */
export let exportScene = (data) => {
    return exportScenedata({
        url: '/vw/vehicleRequirementServe/exportScene',
        method: 'post',
        data: data,
    })
}
